#include "../src/ProjectManager.hpp"
#include <iostream>

void PrintVector(const std::vector<std::string> & list)
{
  for(auto & i :list)
    std::cout<<i<<' ';
  std::cout<<std::endl;
}

int main()
{
  ProjectManager project;
  PrintVector(project.GetProjectList());
  if(project.CreateProject("TestProject1","test")==true)
    PrintVector(project.GetProjectList());
  else
    std::cout<<"无法创建测试工程"<<std::endl;
  std::cout<<"创建测试任务"<<(project.CreateTask("TestProject1","TestTask") ? "成功" : "失败")<<std::endl;
  std::cout<<"测试任务路径"<<project.GetTaskPath("TestProject1","TestTask")<<std::endl;
}
